distance word problems algebra